﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.Model.Auth
{

    /// <summary>
    /// user_team
    /// </summary>
    [SugarTable("user_team", "用户团队表")]
    [Tenant("0")]
    public class UserTeam
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string UserId { get; set; }

        /// <summary>
        /// 是否审核 0:未审核 1:已审核
        /// </summary>
        public int IsAudit { get; set; }

        /// <summary>
        /// 帐号状态（0停用 1正常）
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 团队名称
        /// </summary>
        public string TeamName { get; set; }

        /// <summary>
        /// 团队描述
        /// </summary>
        public string  TeamDescription { get; set; }

        /// <summary>
        /// 团队logo
        /// </summary>
        public  string TeamLogo { get; set; }

        /// <summary>
        /// 团队成立时间
        /// </summary>
        public DateTime EstablishedTime { get; set; }

        /// <summary>
        /// 一对多
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(TeamMember.TeamUserId), nameof(UserId))] //自定义关系映射
        public List<TeamMember> TeamMemberList { get; set; }//只能是null不能赋默认值
    }
}
